package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.DRFDao;
import com.aerotechnic.entities.DRF;
import com.aerotechnic.service.interfaces.DRFBoIn;

@Service("DRFBo")
@Transactional
public class DRFBo implements DRFBoIn {
	
	@Autowired
	private DRFDao dRFDao;

	@Override
	public void save(DRF myEntity) {
		// TODO Auto-generated method stub
		dRFDao.save(myEntity);
		
	}

	@Override
	public void update(DRF myEntity) {
		// TODO Auto-generated method stub
		dRFDao.update(myEntity);
		
	}

	@Override
	public void delete(int id) {
		// TODO Auto-generated method stub
		dRFDao.delete(id);
		
	}

	@Override
	public DRF findByID(int id) {
		// TODO Auto-generated method stub
		return dRFDao.findByID(id);
	}

	@Override
	public List<DRF> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

}
